<!DOCTYPE html PUBLIC>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>填写系列赛详情</title>
    <link href="$!webPath/css/template.css" rel="stylesheet" type="text/css"/>
    <link href="$!webPath/css/jquery-ui-1.8.22.custom.css" type="text/css" rel="stylesheet">
    <script src="$!webPath/js/jquery-1.6.2.js"></script>
    <script src="$!webPath/js/jquery-ui-1.8.21.js"></script>
    <script src="$!webPath/js/ajaxfileupload.js"></script>
    <script>

        function saveForm() {

            jQuery("#theForm").submit();
        }
        //商品图片ajax上传
        function upload_goods_img(){
            jQuery.ajaxFileUpload({
                url:'',
                dataType:'json',
                fileElementId:['goodsPhoto'],
                success:function(data){
                    jQuery(".upload_pictures_top_img img").attr("src","");
                    jQuery('#pictureName').val(data.name);
                }
            });
        }
    </script>
    <style type="text/css">
        label.error {
            color: #F00;
            margin-left: 3px;
        }

        input.error {
            border: 2px solid #F00;
        }
    </style>
</head>
<body>
<div class="cont">
    <h3 class="seth">编辑</h3>
    <div class="nav_list">
        <ul id="ul_table">
            <li><a href="#"><b>系列赛列表</b></a></li>
            <li><a href="javascript:void(0);" class="this"><b>编辑</b></a></li>
        </ul>
    </div>
    <div class="adddetail">
        <form action="$!webPath/admin/" method="post" name="theForm" id="theForm">

            <div class="edit">
                <div class="setcont editul">

                    <ul class="set1">
                        <li class="setcont_bg">系列赛名称</li>
                        <li>
                            <input name="" type="text" value="" size="12">
                        </li>
                    </ul>
                    <ul class="set1">
                        <li class="setcont_bg">系列赛简介</li>
                        <li>
                        <span class="webname">
                          <input name="" type="text" value="" size="30">
                        </span>
                        </li>
                    </ul>
                    <ul class="set1">
                        <li class="setcont_bg"></li>
                        <li>
                            <!--商品图片上传 -->
                            <div class="tab_body" style="width: 500px">
                                <ul class="tabbody_ul">
                                    <li class="this">图</li>
                                </ul>
                                <div class="tabbodys" style="width: 498px;">
                                    <div class="tab_body_b" style="width: 500px;"></div>
                                    <div class="tab_body_a" style="width: 500px;">
                                        <div class="upload_pictures">
                                            <div class="upload_pictures_top">
                                                <div class="upload_pictures_top_img">
                                                    #if($obj.picture_url&&$obj.picture_url!="")
                                                    <img src="" />
                                                    #else
                                                    <img src="" />
                                                    #end
                                                </div>
                                            </div>
                                            <div class="upload_pictures_bottom">
                                                <ul>
                                                    <input type="hidden" name="pictureName" id="pictureName"/>
                                                    <input type="file" id="goodsPhoto" name="goodsPhoto" style="opacity:1;position: static;" onchange="upload_goods_img()" accept="image/jpg,image/jpeg,image/png">
                                                </ul>
                                            </div>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>


        </form>
        <div class="submit">
        <span class="pad120">
    <input name="save" type="button" value="提交" onclick="saveForm()">
    </span>
        </div>
    </div>
</div>
</body>
</html>
